package com.cqrt.mapper;


import com.hustcad.plm.rpm.model.entity.plan.TyppmPlan;
import com.hustcad.plm.rpm.model.entity.plan.TyppmPlanActive;
import com.ty.ppm.model.entity.plan.BaselinePlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface BaseLinePlanExpandMapper {

    List<BaselinePlan> selectBaselinePlanByBaseLineName(@Param("BaselinePlan") BaselinePlan BaselinePlan);

    @Select("select * from TY_PJ_BASELINEPLAN where baselineName=#{BaseLineName}")
    List<BaselinePlan> selectBaselinePlanByName(@Param("BaseLineName") String BaseLineName);


    List<TyppmPlan> selectPlanByContainerOid(@Param("oidList") List<BigInteger> containerOid);

    List<BaselinePlan> selectBaselinePlanByName(@Param("BaselinePlan") BaselinePlan baselinePlan);

    List<TyppmPlanActive> batchQueryPlanActiveByPlanOidList(@Param("oidList") List<BigInteger> parentnodeoid);

}
